<?php

// vincent
	define("ROOT",dirname(__FILE__));
	ob_end_clean();
	//var_dump(ob_get_status());die();

	include ("ebuildy/class/EbApplication.php");
	include ("ebuildy/class/EbMySQLDataSource.php");
	
//	$jaja = new EbMySQLDataSource("server=localhost;login=root;password=;database=mysql");
//	
//	echo eb_var_dump($jaja->execute('SELECT * FROM User'));
//	
//	die();

	$d = dirname('/home/www/ebb5bca8605f68fe917c881da32a6ce6/web/Medias');
	
	//echo fileperms($d);
	
//	chmod($d,0777);
//	
//	umask(0000);
	
	//mkdir($d.'/toto');
	
	//file_put_contents($d.'/toto.txt','jaja');

	if ($_SERVER['HTTP_HOST'] == 'localhost')
	{
		new EbApplication(new EbMySQLDataSource("server=localhost;login=root;password=mysql;database=ebuildy"));
	}
	else
	{
		new EbApplication(new EbMySQLDataSource("server=mysql.varpeople.com;login=marcphoto;password=qud8c4ag;database=varpeoplecom1"));
	}
?>